package com.zimmur.common;

public enum AppModuleEnum {
	Global("100","10"), //公用模块
	Account("200","20"), //账号管理
	Zone("300","30"), //社区模块
	ClothsMaker("400","40"),//衣匠模块
	Order("500","50"), //订单模块
	Cart("501","51"), //购物车模块
	DesigerMake("600","60"), //家定模块
	UserCenter("701","71"),//个人中心模块
	UserMessage("702","72"),//消息模块
	Organization("900","90");//闪创模块
	private final String code;
	private final String moduleId;
	
	private AppModuleEnum(String code,String moduleId){
		this.code=code;
		this.moduleId=moduleId;
	}

	/**
	 * 获取模块ID	
	 * @return
	 */
	public String getModuleId() {
		return moduleId;
	}
	
	/**
	 * 获取模块编码
	 * @return
	 */
	public String getCode() {
		return code;
	}
	
	public static void main(String[] args) {
		AppModuleEnum enum1 = AppModuleEnum.Account;		
		System.out.println(enum1.getCode() + " "+ enum1.getModuleId());
		System.out.println(IDWorkFactory.getID(AppModuleEnum.Account));
	}
}
